



<!DOCTYPE html>
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
 
 <meta name="ROBOTS" content="NOARCHIVE">
 
 <link rel="icon" type="image/vnd.microsoft.icon" href="http://www.gstatic.com/codesite/ph/images/phosting.ico">
 
 
 <script type="text/javascript">
 
 
 
 
 var codesite_token = "241COU8sP-YgFxu0XczFkY8o6QM:1335282193383";
 
 
 var CS_env = {"profileUrl":["/u/wiibricker/"],"token":"241COU8sP-YgFxu0XczFkY8o6QM:1335282193383","assetHostPath":"http://www.gstatic.com/codesite/ph","domainName":null,"assetVersionPath":"http://www.gstatic.com/codesite/ph/10528504652088637030","projectHomeUrl":"/p/libwiisharp","relativeBaseUrl":"","projectName":"libwiisharp","loggedInUserEmail":"wiibricker@gmail.com"};
 var _gaq = _gaq || [];
 _gaq.push(
 ['siteTracker._setAccount', 'UA-18071-1'],
 ['siteTracker._trackPageview']);
 
 _gaq.push(
 ['projectTracker._setAccount', 'UA-10944997-4'],
 ['projectTracker._trackPageview']);
 
 
 </script>
 
 
 <title>Program.cs - 
 libwiisharp -
 
 
 a wii related .NET library - Google Project Hosting
 </title>
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/10528504652088637030/css/core.css">
 
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/10528504652088637030/css/ph_detail.css" >
 
 
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/10528504652088637030/css/d_sb.css" >
 
 
 
<!--[if IE]>
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/10528504652088637030/css/d_ie.css" >
<![endif]-->
 <style type="text/css">
 .menuIcon.off { background: no-repeat url(http://www.gstatic.com/codesite/ph/images/dropdown_sprite.gif) 0 -42px }
 .menuIcon.on { background: no-repeat url(http://www.gstatic.com/codesite/ph/images/dropdown_sprite.gif) 0 -28px }
 .menuIcon.down { background: no-repeat url(http://www.gstatic.com/codesite/ph/images/dropdown_sprite.gif) 0 0; }
 
 
 
  tr.inline_comment {
 background: #fff;
 vertical-align: top;
 }
 div.draft, div.published {
 padding: .3em;
 border: 1px solid #999; 
 margin-bottom: .1em;
 font-family: arial, sans-serif;
 max-width: 60em;
 }
 div.draft {
 background: #ffa;
 } 
 div.published {
 background: #e5ecf9;
 }
 div.published .body, div.draft .body {
 padding: .5em .1em .1em .1em;
 max-width: 60em;
 white-space: pre-wrap;
 white-space: -moz-pre-wrap;
 white-space: -pre-wrap;
 white-space: -o-pre-wrap;
 word-wrap: break-word;
 font-size: 1em;
 }
 div.draft .actions {
 margin-left: 1em;
 font-size: 90%;
 }
 div.draft form {
 padding: .5em .5em .5em 0;
 }
 div.draft textarea, div.published textarea {
 width: 95%;
 height: 10em;
 font-family: arial, sans-serif;
 margin-bottom: .5em;
 }

 
 .nocursor, .nocursor td, .cursor_hidden, .cursor_hidden td {
 background-color: white;
 height: 2px;
 }
 .cursor, .cursor td {
 background-color: darkblue;
 height: 2px;
 display: '';
 }
 
 
.list {
 border: 1px solid white;
 border-bottom: 0;
}

 
 </style>
</head>
<body class="t4">
<script type="text/javascript">
 (function() {
 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
 })();
</script>
<script type="text/javascript">
 window.___gcfg = {lang: 'en'};
 (function() 
 {var po = document.createElement("script");
 po.type = "text/javascript"; po.async = true;po.src = "https://apis.google.com/js/plusone.js";
 var s = document.getElementsByTagName("script")[0];
 s.parentNode.insertBefore(po, s);
 })();
</script>
<div class="headbg">

 <div id="gaia">
 

 <span>
 
 
 <b>wiibricker@gmail.com</b>
 
 
 | <a href="/u/wiibricker/" id="projects-dropdown" onclick="return false;"
 ><u>My favorites</u> <small>&#9660;</small></a>
 | <a href="/u/wiibricker/" onclick="_CS_click('/gb/ph/profile');"
 title="Profile, Updates, and Settings"
 ><u>Profile</u></a>
 | <a href="https://www.google.com/accounts/Logout?continue=http%3A%2F%2Fcode.google.com%2Fp%2Flibwiisharp%2Fsource%2Fbrowse%2Fbranches%2FpatchIOS%2FpatchIOS%2FProgram.cs" 
 onclick="_CS_click('/gb/ph/signout');"
 ><u>Sign out</u></a>
 
 </span>

 </div>

 <div class="gbh" style="left: 0pt;"></div>
 <div class="gbh" style="right: 0pt;"></div>
 
 
 <div style="height: 1px"></div>
<!--[if lte IE 7]>
<div style="text-align:center;">
Your version of Internet Explorer is not supported. Try a browser that
contributes to open source, such as <a href="http://www.firefox.com">Firefox</a>,
<a href="http://www.google.com/chrome">Google Chrome</a>, or
<a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a>.
</div>
<![endif]-->



 <table style="padding:0px; margin: 0px 0px 10px 0px; width:100%" cellpadding="0" cellspacing="0"
 itemscope itemtype="http://schema.org/CreativeWork">
 <tr style="height: 58px;">
 
 <td id="plogo">
 <link itemprop="url" href="/p/libwiisharp">
 <a href="/p/libwiisharp/">
 
 <img src="http://www.gstatic.com/codesite/ph/images/defaultlogo.png" alt="Logo" itemprop="image">
 
 </a>
 </td>
 
 <td style="padding-left: 0.5em">
 
 <div id="pname">
 <a href="/p/libwiisharp/"><span itemprop="name">libwiisharp</span></a>
 </div>
 
 <div id="psum">
 <a id="project_summary_link"
 href="/p/libwiisharp/"><span itemprop="description">a wii related .NET library</span></a>
 
 </div>
 
 
 </td>
 <td style="white-space:nowrap;text-align:right; vertical-align:bottom;">
 
 <form action="/hosting/search">
 <input size="30" name="q" value="" type="text">
 
 <input type="submit" name="projectsearch" value="Search projects" >
 </form>
 
 </tr>
 </table>

</div>

 
<div id="mt" class="gtb"> 
 <a href="/p/libwiisharp/" class="tab ">Project&nbsp;Home</a>
 
 
 
 
 <a href="/p/libwiisharp/downloads/list" class="tab ">Downloads</a>
 
 
 
 
 
 <a href="/p/libwiisharp/w/list" class="tab ">Wiki</a>
 
 
 
 
 
 <a href="/p/libwiisharp/issues/list"
 class="tab ">Issues</a>
 
 
 
 
 
 <a href="/p/libwiisharp/source/checkout"
 class="tab active">Source</a>
 
 
 
 
 
 <div class=gtbc></div>
</div>
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0" class="st">
 <tr>
 
 
 
 
 
 
 <td class="subt">
 <div class="st2">
 <div class="isf">
 
 


 <span class="inst1"><a href="/p/libwiisharp/source/checkout">Checkout</a></span> &nbsp;
 <span class="inst2"><a href="/p/libwiisharp/source/browse/">Browse</a></span> &nbsp;
 <span class="inst3"><a href="/p/libwiisharp/source/list">Changes</a></span> &nbsp;
 
 &nbsp;
 
 <form action="/p/libwiisharp/source/search" method="get" style="display:inline"
 onsubmit="document.getElementById('codesearchq').value = document.getElementById('origq').value">
 <input type="hidden" name="q" id="codesearchq" value="">
 <input type="text" maxlength="2048" size="38" id="origq" name="origq" value="" title="Google Code Search" style="font-size:92%">&nbsp;<input type="submit" value="Search Trunk" name="btnG" style="font-size:92%">
 
 
 
 
 
 
 </form>
 </div>
</div>

 </td>
 
 
 
 <td align="right" valign="top" class="bevel-right"></td>
 </tr>
</table>


<script type="text/javascript">
 var cancelBubble = false;
 function _go(url) { document.location = url; }
</script>
<div id="maincol"
 
>

 
<!-- IE -->




<div class="expand">
<div id="colcontrol">
<style type="text/css">
 #file_flipper { white-space: nowrap; padding-right: 2em; }
 #file_flipper.hidden { display: none; }
 #file_flipper .pagelink { color: #0000CC; text-decoration: underline; }
 #file_flipper #visiblefiles { padding-left: 0.5em; padding-right: 0.5em; }
</style>
<table id="nav_and_rev" class="list"
 cellpadding="0" cellspacing="0" width="100%">
 <tr>
 
 <td nowrap="nowrap" class="src_crumbs src_nav" width="33%">
 <strong class="src_nav">Source path:&nbsp;</strong>
 <span id="crumb_root">
 
 <a href="/p/libwiisharp/source/browse/">svn</a>/&nbsp;</span>
 <span id="crumb_links" class="ifClosed"><a href="/p/libwiisharp/source/browse/branches/">branches</a><span class="sp">/&nbsp;</span><a href="/p/libwiisharp/source/browse/branches/patchIOS/">patchIOS</a><span class="sp">/&nbsp;</span><a href="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/">patchIOS</a><span class="sp">/&nbsp;</span>Program.cs</span>
 
 

 </td>
 
 
 <td nowrap="nowrap" width="33%" align="center">
 <a href="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/Program.cs?edit=1"
 ><img src="http://www.gstatic.com/codesite/ph/images/pencil-y14.png"
 class="edit_icon">Edit file</a>
 </td>
 
 
 <td nowrap="nowrap" width="33%" align="right">
 <table cellpadding="0" cellspacing="0" style="font-size: 100%"><tr>
 
 
 <td class="flipper"><b>r5</b></td>
 
 </tr></table>
 </td> 
 </tr>
</table>

<div class="fc">
 
 
 
<style type="text/css">
.undermouse span {
 background-image: url(http://www.gstatic.com/codesite/ph/images/comments.gif); }
</style>
<table class="opened" id="review_comment_area"
><tr>
<td id="nums">
<pre><table width="100%"><tr class="nocursor"><td></td></tr></table></pre>
<pre><table width="100%" id="nums_table_0"><tr id="gr_svn5_1"

><td id="1"><a href="#1">1</a></td></tr
><tr id="gr_svn5_2"

><td id="2"><a href="#2">2</a></td></tr
><tr id="gr_svn5_3"

><td id="3"><a href="#3">3</a></td></tr
><tr id="gr_svn5_4"

><td id="4"><a href="#4">4</a></td></tr
><tr id="gr_svn5_5"

><td id="5"><a href="#5">5</a></td></tr
><tr id="gr_svn5_6"

><td id="6"><a href="#6">6</a></td></tr
><tr id="gr_svn5_7"

><td id="7"><a href="#7">7</a></td></tr
><tr id="gr_svn5_8"

><td id="8"><a href="#8">8</a></td></tr
><tr id="gr_svn5_9"

><td id="9"><a href="#9">9</a></td></tr
><tr id="gr_svn5_10"

><td id="10"><a href="#10">10</a></td></tr
><tr id="gr_svn5_11"

><td id="11"><a href="#11">11</a></td></tr
><tr id="gr_svn5_12"

><td id="12"><a href="#12">12</a></td></tr
><tr id="gr_svn5_13"

><td id="13"><a href="#13">13</a></td></tr
><tr id="gr_svn5_14"

><td id="14"><a href="#14">14</a></td></tr
><tr id="gr_svn5_15"

><td id="15"><a href="#15">15</a></td></tr
><tr id="gr_svn5_16"

><td id="16"><a href="#16">16</a></td></tr
><tr id="gr_svn5_17"

><td id="17"><a href="#17">17</a></td></tr
><tr id="gr_svn5_18"

><td id="18"><a href="#18">18</a></td></tr
><tr id="gr_svn5_19"

><td id="19"><a href="#19">19</a></td></tr
><tr id="gr_svn5_20"

><td id="20"><a href="#20">20</a></td></tr
><tr id="gr_svn5_21"

><td id="21"><a href="#21">21</a></td></tr
><tr id="gr_svn5_22"

><td id="22"><a href="#22">22</a></td></tr
><tr id="gr_svn5_23"

><td id="23"><a href="#23">23</a></td></tr
><tr id="gr_svn5_24"

><td id="24"><a href="#24">24</a></td></tr
><tr id="gr_svn5_25"

><td id="25"><a href="#25">25</a></td></tr
><tr id="gr_svn5_26"

><td id="26"><a href="#26">26</a></td></tr
><tr id="gr_svn5_27"

><td id="27"><a href="#27">27</a></td></tr
><tr id="gr_svn5_28"

><td id="28"><a href="#28">28</a></td></tr
><tr id="gr_svn5_29"

><td id="29"><a href="#29">29</a></td></tr
><tr id="gr_svn5_30"

><td id="30"><a href="#30">30</a></td></tr
><tr id="gr_svn5_31"

><td id="31"><a href="#31">31</a></td></tr
><tr id="gr_svn5_32"

><td id="32"><a href="#32">32</a></td></tr
><tr id="gr_svn5_33"

><td id="33"><a href="#33">33</a></td></tr
><tr id="gr_svn5_34"

><td id="34"><a href="#34">34</a></td></tr
><tr id="gr_svn5_35"

><td id="35"><a href="#35">35</a></td></tr
><tr id="gr_svn5_36"

><td id="36"><a href="#36">36</a></td></tr
><tr id="gr_svn5_37"

><td id="37"><a href="#37">37</a></td></tr
><tr id="gr_svn5_38"

><td id="38"><a href="#38">38</a></td></tr
><tr id="gr_svn5_39"

><td id="39"><a href="#39">39</a></td></tr
><tr id="gr_svn5_40"

><td id="40"><a href="#40">40</a></td></tr
><tr id="gr_svn5_41"

><td id="41"><a href="#41">41</a></td></tr
><tr id="gr_svn5_42"

><td id="42"><a href="#42">42</a></td></tr
><tr id="gr_svn5_43"

><td id="43"><a href="#43">43</a></td></tr
><tr id="gr_svn5_44"

><td id="44"><a href="#44">44</a></td></tr
><tr id="gr_svn5_45"

><td id="45"><a href="#45">45</a></td></tr
><tr id="gr_svn5_46"

><td id="46"><a href="#46">46</a></td></tr
><tr id="gr_svn5_47"

><td id="47"><a href="#47">47</a></td></tr
><tr id="gr_svn5_48"

><td id="48"><a href="#48">48</a></td></tr
><tr id="gr_svn5_49"

><td id="49"><a href="#49">49</a></td></tr
><tr id="gr_svn5_50"

><td id="50"><a href="#50">50</a></td></tr
><tr id="gr_svn5_51"

><td id="51"><a href="#51">51</a></td></tr
><tr id="gr_svn5_52"

><td id="52"><a href="#52">52</a></td></tr
><tr id="gr_svn5_53"

><td id="53"><a href="#53">53</a></td></tr
><tr id="gr_svn5_54"

><td id="54"><a href="#54">54</a></td></tr
><tr id="gr_svn5_55"

><td id="55"><a href="#55">55</a></td></tr
><tr id="gr_svn5_56"

><td id="56"><a href="#56">56</a></td></tr
><tr id="gr_svn5_57"

><td id="57"><a href="#57">57</a></td></tr
><tr id="gr_svn5_58"

><td id="58"><a href="#58">58</a></td></tr
><tr id="gr_svn5_59"

><td id="59"><a href="#59">59</a></td></tr
><tr id="gr_svn5_60"

><td id="60"><a href="#60">60</a></td></tr
><tr id="gr_svn5_61"

><td id="61"><a href="#61">61</a></td></tr
><tr id="gr_svn5_62"

><td id="62"><a href="#62">62</a></td></tr
><tr id="gr_svn5_63"

><td id="63"><a href="#63">63</a></td></tr
><tr id="gr_svn5_64"

><td id="64"><a href="#64">64</a></td></tr
><tr id="gr_svn5_65"

><td id="65"><a href="#65">65</a></td></tr
><tr id="gr_svn5_66"

><td id="66"><a href="#66">66</a></td></tr
><tr id="gr_svn5_67"

><td id="67"><a href="#67">67</a></td></tr
><tr id="gr_svn5_68"

><td id="68"><a href="#68">68</a></td></tr
><tr id="gr_svn5_69"

><td id="69"><a href="#69">69</a></td></tr
><tr id="gr_svn5_70"

><td id="70"><a href="#70">70</a></td></tr
><tr id="gr_svn5_71"

><td id="71"><a href="#71">71</a></td></tr
><tr id="gr_svn5_72"

><td id="72"><a href="#72">72</a></td></tr
><tr id="gr_svn5_73"

><td id="73"><a href="#73">73</a></td></tr
><tr id="gr_svn5_74"

><td id="74"><a href="#74">74</a></td></tr
><tr id="gr_svn5_75"

><td id="75"><a href="#75">75</a></td></tr
><tr id="gr_svn5_76"

><td id="76"><a href="#76">76</a></td></tr
><tr id="gr_svn5_77"

><td id="77"><a href="#77">77</a></td></tr
><tr id="gr_svn5_78"

><td id="78"><a href="#78">78</a></td></tr
><tr id="gr_svn5_79"

><td id="79"><a href="#79">79</a></td></tr
><tr id="gr_svn5_80"

><td id="80"><a href="#80">80</a></td></tr
><tr id="gr_svn5_81"

><td id="81"><a href="#81">81</a></td></tr
><tr id="gr_svn5_82"

><td id="82"><a href="#82">82</a></td></tr
><tr id="gr_svn5_83"

><td id="83"><a href="#83">83</a></td></tr
><tr id="gr_svn5_84"

><td id="84"><a href="#84">84</a></td></tr
><tr id="gr_svn5_85"

><td id="85"><a href="#85">85</a></td></tr
><tr id="gr_svn5_86"

><td id="86"><a href="#86">86</a></td></tr
><tr id="gr_svn5_87"

><td id="87"><a href="#87">87</a></td></tr
><tr id="gr_svn5_88"

><td id="88"><a href="#88">88</a></td></tr
><tr id="gr_svn5_89"

><td id="89"><a href="#89">89</a></td></tr
><tr id="gr_svn5_90"

><td id="90"><a href="#90">90</a></td></tr
><tr id="gr_svn5_91"

><td id="91"><a href="#91">91</a></td></tr
><tr id="gr_svn5_92"

><td id="92"><a href="#92">92</a></td></tr
><tr id="gr_svn5_93"

><td id="93"><a href="#93">93</a></td></tr
><tr id="gr_svn5_94"

><td id="94"><a href="#94">94</a></td></tr
><tr id="gr_svn5_95"

><td id="95"><a href="#95">95</a></td></tr
><tr id="gr_svn5_96"

><td id="96"><a href="#96">96</a></td></tr
><tr id="gr_svn5_97"

><td id="97"><a href="#97">97</a></td></tr
><tr id="gr_svn5_98"

><td id="98"><a href="#98">98</a></td></tr
><tr id="gr_svn5_99"

><td id="99"><a href="#99">99</a></td></tr
><tr id="gr_svn5_100"

><td id="100"><a href="#100">100</a></td></tr
><tr id="gr_svn5_101"

><td id="101"><a href="#101">101</a></td></tr
><tr id="gr_svn5_102"

><td id="102"><a href="#102">102</a></td></tr
><tr id="gr_svn5_103"

><td id="103"><a href="#103">103</a></td></tr
><tr id="gr_svn5_104"

><td id="104"><a href="#104">104</a></td></tr
><tr id="gr_svn5_105"

><td id="105"><a href="#105">105</a></td></tr
><tr id="gr_svn5_106"

><td id="106"><a href="#106">106</a></td></tr
><tr id="gr_svn5_107"

><td id="107"><a href="#107">107</a></td></tr
><tr id="gr_svn5_108"

><td id="108"><a href="#108">108</a></td></tr
><tr id="gr_svn5_109"

><td id="109"><a href="#109">109</a></td></tr
><tr id="gr_svn5_110"

><td id="110"><a href="#110">110</a></td></tr
><tr id="gr_svn5_111"

><td id="111"><a href="#111">111</a></td></tr
><tr id="gr_svn5_112"

><td id="112"><a href="#112">112</a></td></tr
><tr id="gr_svn5_113"

><td id="113"><a href="#113">113</a></td></tr
><tr id="gr_svn5_114"

><td id="114"><a href="#114">114</a></td></tr
><tr id="gr_svn5_115"

><td id="115"><a href="#115">115</a></td></tr
><tr id="gr_svn5_116"

><td id="116"><a href="#116">116</a></td></tr
><tr id="gr_svn5_117"

><td id="117"><a href="#117">117</a></td></tr
><tr id="gr_svn5_118"

><td id="118"><a href="#118">118</a></td></tr
><tr id="gr_svn5_119"

><td id="119"><a href="#119">119</a></td></tr
><tr id="gr_svn5_120"

><td id="120"><a href="#120">120</a></td></tr
><tr id="gr_svn5_121"

><td id="121"><a href="#121">121</a></td></tr
><tr id="gr_svn5_122"

><td id="122"><a href="#122">122</a></td></tr
><tr id="gr_svn5_123"

><td id="123"><a href="#123">123</a></td></tr
><tr id="gr_svn5_124"

><td id="124"><a href="#124">124</a></td></tr
><tr id="gr_svn5_125"

><td id="125"><a href="#125">125</a></td></tr
><tr id="gr_svn5_126"

><td id="126"><a href="#126">126</a></td></tr
><tr id="gr_svn5_127"

><td id="127"><a href="#127">127</a></td></tr
><tr id="gr_svn5_128"

><td id="128"><a href="#128">128</a></td></tr
><tr id="gr_svn5_129"

><td id="129"><a href="#129">129</a></td></tr
><tr id="gr_svn5_130"

><td id="130"><a href="#130">130</a></td></tr
><tr id="gr_svn5_131"

><td id="131"><a href="#131">131</a></td></tr
><tr id="gr_svn5_132"

><td id="132"><a href="#132">132</a></td></tr
><tr id="gr_svn5_133"

><td id="133"><a href="#133">133</a></td></tr
><tr id="gr_svn5_134"

><td id="134"><a href="#134">134</a></td></tr
><tr id="gr_svn5_135"

><td id="135"><a href="#135">135</a></td></tr
><tr id="gr_svn5_136"

><td id="136"><a href="#136">136</a></td></tr
><tr id="gr_svn5_137"

><td id="137"><a href="#137">137</a></td></tr
><tr id="gr_svn5_138"

><td id="138"><a href="#138">138</a></td></tr
><tr id="gr_svn5_139"

><td id="139"><a href="#139">139</a></td></tr
><tr id="gr_svn5_140"

><td id="140"><a href="#140">140</a></td></tr
><tr id="gr_svn5_141"

><td id="141"><a href="#141">141</a></td></tr
><tr id="gr_svn5_142"

><td id="142"><a href="#142">142</a></td></tr
><tr id="gr_svn5_143"

><td id="143"><a href="#143">143</a></td></tr
><tr id="gr_svn5_144"

><td id="144"><a href="#144">144</a></td></tr
><tr id="gr_svn5_145"

><td id="145"><a href="#145">145</a></td></tr
><tr id="gr_svn5_146"

><td id="146"><a href="#146">146</a></td></tr
><tr id="gr_svn5_147"

><td id="147"><a href="#147">147</a></td></tr
><tr id="gr_svn5_148"

><td id="148"><a href="#148">148</a></td></tr
><tr id="gr_svn5_149"

><td id="149"><a href="#149">149</a></td></tr
><tr id="gr_svn5_150"

><td id="150"><a href="#150">150</a></td></tr
><tr id="gr_svn5_151"

><td id="151"><a href="#151">151</a></td></tr
><tr id="gr_svn5_152"

><td id="152"><a href="#152">152</a></td></tr
><tr id="gr_svn5_153"

><td id="153"><a href="#153">153</a></td></tr
><tr id="gr_svn5_154"

><td id="154"><a href="#154">154</a></td></tr
><tr id="gr_svn5_155"

><td id="155"><a href="#155">155</a></td></tr
><tr id="gr_svn5_156"

><td id="156"><a href="#156">156</a></td></tr
><tr id="gr_svn5_157"

><td id="157"><a href="#157">157</a></td></tr
><tr id="gr_svn5_158"

><td id="158"><a href="#158">158</a></td></tr
><tr id="gr_svn5_159"

><td id="159"><a href="#159">159</a></td></tr
><tr id="gr_svn5_160"

><td id="160"><a href="#160">160</a></td></tr
><tr id="gr_svn5_161"

><td id="161"><a href="#161">161</a></td></tr
><tr id="gr_svn5_162"

><td id="162"><a href="#162">162</a></td></tr
></table></pre>
<pre><table width="100%"><tr class="nocursor"><td></td></tr></table></pre>
</td>
<td id="lines">
<pre><table width="100%"><tr class="cursor_stop cursor_hidden"><td></td></tr></table></pre>
<pre class="prettyprint lang-cs"><table id="src_table_0"><tr
id=sl_svn5_1

><td class="source">﻿//#define Debug<br></td></tr
><tr
id=sl_svn5_2

><td class="source"><br></td></tr
><tr
id=sl_svn5_3

><td class="source">using System;<br></td></tr
><tr
id=sl_svn5_4

><td class="source">using System.IO;<br></td></tr
><tr
id=sl_svn5_5

><td class="source">using System.Windows.Forms;<br></td></tr
><tr
id=sl_svn5_6

><td class="source">using libWiiSharp;<br></td></tr
><tr
id=sl_svn5_7

><td class="source"><br></td></tr
><tr
id=sl_svn5_8

><td class="source">namespace patchIOS<br></td></tr
><tr
id=sl_svn5_9

><td class="source">{<br></td></tr
><tr
id=sl_svn5_10

><td class="source">    class Program<br></td></tr
><tr
id=sl_svn5_11

><td class="source">    {<br></td></tr
><tr
id=sl_svn5_12

><td class="source">        private const string version = &quot;1.1&quot;;<br></td></tr
><tr
id=sl_svn5_13

><td class="source"><br></td></tr
><tr
id=sl_svn5_14

><td class="source">        static void Main(string[] args)<br></td></tr
><tr
id=sl_svn5_15

><td class="source">        {<br></td></tr
><tr
id=sl_svn5_16

><td class="source">            printInfo();<br></td></tr
><tr
id=sl_svn5_17

><td class="source">            if (!File.Exists(&quot;libWiiSharp.dll&quot;)) { Console.WriteLine(&quot;libWiiSharp.dll wasn&#39;t found...&quot;); exit(); }<br></td></tr
><tr
id=sl_svn5_18

><td class="source">            if (args.Length &lt; 2) { printInstructions(); exit(); }<br></td></tr
><tr
id=sl_svn5_19

><td class="source"><br></td></tr
><tr
id=sl_svn5_20

><td class="source">            patchIos(args);<br></td></tr
><tr
id=sl_svn5_21

><td class="source">        }<br></td></tr
><tr
id=sl_svn5_22

><td class="source"><br></td></tr
><tr
id=sl_svn5_23

><td class="source">        private static void patchIos(string[] args)<br></td></tr
><tr
id=sl_svn5_24

><td class="source">        {<br></td></tr
><tr
id=sl_svn5_25

><td class="source">            //Parse args, first arg to be file<br></td></tr
><tr
id=sl_svn5_26

><td class="source">            string inputFile = args[0];<br></td></tr
><tr
id=sl_svn5_27

><td class="source">            if (!File.Exists(inputFile)) { Console.WriteLine(&quot;{0} wasn&#39;t found...&quot;, inputFile); exit(); }<br></td></tr
><tr
id=sl_svn5_28

><td class="source"><br></td></tr
><tr
id=sl_svn5_29

><td class="source">            bool[] patches = new bool[3];<br></td></tr
><tr
id=sl_svn5_30

><td class="source">            int newSlot = -1;<br></td></tr
><tr
id=sl_svn5_31

><td class="source">            int newVersion = -1;<br></td></tr
><tr
id=sl_svn5_32

><td class="source"><br></td></tr
><tr
id=sl_svn5_33

><td class="source">            for (int i = 1; i &lt; args.Length; i++)<br></td></tr
><tr
id=sl_svn5_34

><td class="source">            {<br></td></tr
><tr
id=sl_svn5_35

><td class="source">                switch (args[i].ToUpper())<br></td></tr
><tr
id=sl_svn5_36

><td class="source">                {<br></td></tr
><tr
id=sl_svn5_37

><td class="source">                    case &quot;-FS&quot;:<br></td></tr
><tr
id=sl_svn5_38

><td class="source">                        patches[0] = true;<br></td></tr
><tr
id=sl_svn5_39

><td class="source">                        break;<br></td></tr
><tr
id=sl_svn5_40

><td class="source">                    case &quot;-ES&quot;:<br></td></tr
><tr
id=sl_svn5_41

><td class="source">                        patches[1] = true;<br></td></tr
><tr
id=sl_svn5_42

><td class="source">                        break;<br></td></tr
><tr
id=sl_svn5_43

><td class="source">                    case &quot;-NP&quot;:<br></td></tr
><tr
id=sl_svn5_44

><td class="source">                        patches[2] = true;<br></td></tr
><tr
id=sl_svn5_45

><td class="source">                        break;<br></td></tr
><tr
id=sl_svn5_46

><td class="source">                    case &quot;-SLOT&quot;:<br></td></tr
><tr
id=sl_svn5_47

><td class="source">                        if (!int.TryParse(args[i + 1], out newSlot))<br></td></tr
><tr
id=sl_svn5_48

><td class="source">                        { Console.WriteLine(&quot;Invalid slot {0}...&quot;, args[i + 1]); exit(); }<br></td></tr
><tr
id=sl_svn5_49

><td class="source">                        if (newSlot &lt; 3 || newSlot &gt; 0xFF)<br></td></tr
><tr
id=sl_svn5_50

><td class="source">                        { Console.WriteLine(&quot;Invalid slot {0}...&quot;, newSlot); exit(); }<br></td></tr
><tr
id=sl_svn5_51

><td class="source">                        break;<br></td></tr
><tr
id=sl_svn5_52

><td class="source">                    case &quot;-V&quot;:<br></td></tr
><tr
id=sl_svn5_53

><td class="source">                        if (!int.TryParse(args[i + 1], out newVersion))<br></td></tr
><tr
id=sl_svn5_54

><td class="source">                        { Console.WriteLine(&quot;Invalid version {0}...&quot;, args[i + 1]); exit(); }<br></td></tr
><tr
id=sl_svn5_55

><td class="source">                        if (newVersion &lt; 0 || newVersion &gt; 0xFFFF)<br></td></tr
><tr
id=sl_svn5_56

><td class="source">                        { Console.WriteLine(&quot;Invalid version {0}...&quot;, newVersion); exit(); }<br></td></tr
><tr
id=sl_svn5_57

><td class="source">                        break;<br></td></tr
><tr
id=sl_svn5_58

><td class="source">                }<br></td></tr
><tr
id=sl_svn5_59

><td class="source">            }<br></td></tr
><tr
id=sl_svn5_60

><td class="source"><br></td></tr
><tr
id=sl_svn5_61

><td class="source">            if (!patches[0] &amp;&amp; !patches[1] &amp;&amp; !patches[2] &amp;&amp; newSlot == -1 &amp;&amp; newVersion == -1)<br></td></tr
><tr
id=sl_svn5_62

><td class="source">            { Console.WriteLine(&quot;No action specified...&quot;); exit(); }<br></td></tr
><tr
id=sl_svn5_63

><td class="source"><br></td></tr
><tr
id=sl_svn5_64

><td class="source">            //Load WAD<br></td></tr
><tr
id=sl_svn5_65

><td class="source">            Console.WriteLine(&quot;Loading WAD...&quot;);<br></td></tr
><tr
id=sl_svn5_66

><td class="source"><br></td></tr
><tr
id=sl_svn5_67

><td class="source">            WAD w = new WAD();<br></td></tr
><tr
id=sl_svn5_68

><td class="source">            w.KeepOriginalFooter = true;<br></td></tr
><tr
id=sl_svn5_69

><td class="source"><br></td></tr
><tr
id=sl_svn5_70

><td class="source">            w.Warning += new EventHandler&lt;MessageEventArgs&gt;(w_Warning);<br></td></tr
><tr
id=sl_svn5_71

><td class="source">            w.LoadFile(inputFile);<br></td></tr
><tr
id=sl_svn5_72

><td class="source"><br></td></tr
><tr
id=sl_svn5_73

><td class="source">            //Check if WAD is an IOS<br></td></tr
><tr
id=sl_svn5_74

><td class="source">            if ((w.TitleID &gt;&gt; 32) != 1 || (w.TitleID &amp; 0xffffffff) &gt; 255 || (w.TitleID &amp; 0xffffffff) &lt; 3)<br></td></tr
><tr
id=sl_svn5_75

><td class="source">            { Console.WriteLine(&quot;Only IOS WADs can be patched...&quot;); exit(); }<br></td></tr
><tr
id=sl_svn5_76

><td class="source"><br></td></tr
><tr
id=sl_svn5_77

><td class="source">            //Patch<br></td></tr
><tr
id=sl_svn5_78

><td class="source">            int patchesApplied = 0;<br></td></tr
><tr
id=sl_svn5_79

><td class="source"><br></td></tr
><tr
id=sl_svn5_80

><td class="source">            if (patches[0] || patches[1] || patches[2])<br></td></tr
><tr
id=sl_svn5_81

><td class="source">            {<br></td></tr
><tr
id=sl_svn5_82

><td class="source">                IosPatcher patcher = new IosPatcher();<br></td></tr
><tr
id=sl_svn5_83

><td class="source">                patcher.Debug += new EventHandler&lt;MessageEventArgs&gt;(patcher_Debug);<br></td></tr
><tr
id=sl_svn5_84

><td class="source"><br></td></tr
><tr
id=sl_svn5_85

><td class="source">                patcher.LoadIOS(ref w);<br></td></tr
><tr
id=sl_svn5_86

><td class="source"><br></td></tr
><tr
id=sl_svn5_87

><td class="source">                if (patches[0] &amp;&amp; patches[1] &amp;&amp; patches[2])<br></td></tr
><tr
id=sl_svn5_88

><td class="source">                    patchesApplied = patcher.PatchAll();<br></td></tr
><tr
id=sl_svn5_89

><td class="source">                else<br></td></tr
><tr
id=sl_svn5_90

><td class="source">                {<br></td></tr
><tr
id=sl_svn5_91

><td class="source">                    if (patches[0])<br></td></tr
><tr
id=sl_svn5_92

><td class="source">                        patchesApplied += patcher.PatchFakeSigning();<br></td></tr
><tr
id=sl_svn5_93

><td class="source">                    if (patches[1])<br></td></tr
><tr
id=sl_svn5_94

><td class="source">                        patchesApplied += patcher.PatchEsIdentify();<br></td></tr
><tr
id=sl_svn5_95

><td class="source">                    if (patches[2])<br></td></tr
><tr
id=sl_svn5_96

><td class="source">                        patchesApplied += patcher.PatchNandPermissions();<br></td></tr
><tr
id=sl_svn5_97

><td class="source">                }<br></td></tr
><tr
id=sl_svn5_98

><td class="source">            }<br></td></tr
><tr
id=sl_svn5_99

><td class="source"><br></td></tr
><tr
id=sl_svn5_100

><td class="source">            //Change slot / version if requested<br></td></tr
><tr
id=sl_svn5_101

><td class="source">            if (newVersion &gt; -1 || newSlot &gt; -1)<br></td></tr
><tr
id=sl_svn5_102

><td class="source">            {<br></td></tr
><tr
id=sl_svn5_103

><td class="source">                if (newVersion &gt; -1)<br></td></tr
><tr
id=sl_svn5_104

><td class="source">                { Console.WriteLine(&quot;Changing Title Version to: {0}&quot;, newVersion); w.TitleVersion = (ushort)newVersion; }<br></td></tr
><tr
id=sl_svn5_105

><td class="source"><br></td></tr
><tr
id=sl_svn5_106

><td class="source">                if (newSlot &gt; -1)<br></td></tr
><tr
id=sl_svn5_107

><td class="source">                { Console.WriteLine(&quot;Changing IOS Slot to: {0}&quot;, newSlot); w.TitleID = (ulong)((1UL &lt;&lt; 32) | (uint)newSlot); }<br></td></tr
><tr
id=sl_svn5_108

><td class="source"><br></td></tr
><tr
id=sl_svn5_109

><td class="source">                w.FakeSign = true;<br></td></tr
><tr
id=sl_svn5_110

><td class="source">            }<br></td></tr
><tr
id=sl_svn5_111

><td class="source"><br></td></tr
><tr
id=sl_svn5_112

><td class="source">            //Save patched WAD<br></td></tr
><tr
id=sl_svn5_113

><td class="source">            Console.WriteLine(&quot;&quot;);<br></td></tr
><tr
id=sl_svn5_114

><td class="source">            if (patchesApplied == 0 &amp;&amp; newSlot == -1 &amp;&amp; newVersion == -1) { Console.WriteLine(&quot;No patches applied...&quot;); exit(); }<br></td></tr
><tr
id=sl_svn5_115

><td class="source"><br></td></tr
><tr
id=sl_svn5_116

><td class="source">            Console.WriteLine(&quot;{0} patches applied, saving WAD...&quot;, patchesApplied);<br></td></tr
><tr
id=sl_svn5_117

><td class="source">            w.Save(inputFile);<br></td></tr
><tr
id=sl_svn5_118

><td class="source">            Console.WriteLine(&quot;Finished...&quot;);<br></td></tr
><tr
id=sl_svn5_119

><td class="source">            exit();<br></td></tr
><tr
id=sl_svn5_120

><td class="source">        }<br></td></tr
><tr
id=sl_svn5_121

><td class="source"><br></td></tr
><tr
id=sl_svn5_122

><td class="source">        static void w_Warning(object sender, MessageEventArgs e)<br></td></tr
><tr
id=sl_svn5_123

><td class="source">        {<br></td></tr
><tr
id=sl_svn5_124

><td class="source">            System.Windows.Forms.MessageBox.Show(e.Message);<br></td></tr
><tr
id=sl_svn5_125

><td class="source">        }<br></td></tr
><tr
id=sl_svn5_126

><td class="source"><br></td></tr
><tr
id=sl_svn5_127

><td class="source">        static void patcher_Debug(object sender, MessageEventArgs e)<br></td></tr
><tr
id=sl_svn5_128

><td class="source">        {<br></td></tr
><tr
id=sl_svn5_129

><td class="source">            if (!e.Message.ToLower().Contains(&quot;finished&quot;))<br></td></tr
><tr
id=sl_svn5_130

><td class="source">                Console.WriteLine(e.Message);<br></td></tr
><tr
id=sl_svn5_131

><td class="source">        }<br></td></tr
><tr
id=sl_svn5_132

><td class="source"><br></td></tr
><tr
id=sl_svn5_133

><td class="source">        private static void printInfo()<br></td></tr
><tr
id=sl_svn5_134

><td class="source">        {<br></td></tr
><tr
id=sl_svn5_135

><td class="source">            Console.WriteLine(&quot;-=-=-=-=-=-=-=-=-=-=-=-=-&quot;);<br></td></tr
><tr
id=sl_svn5_136

><td class="source">            Console.WriteLine(&quot; patchIOS {0} by Leathl  &quot;, version);<br></td></tr
><tr
id=sl_svn5_137

><td class="source">            Console.WriteLine(&quot;-=-=-=-=-=-=-=-=-=-=-=-=-&quot;);<br></td></tr
><tr
id=sl_svn5_138

><td class="source">            Console.WriteLine(&quot;&quot;);<br></td></tr
><tr
id=sl_svn5_139

><td class="source">        }<br></td></tr
><tr
id=sl_svn5_140

><td class="source"><br></td></tr
><tr
id=sl_svn5_141

><td class="source">        private static void printInstructions()<br></td></tr
><tr
id=sl_svn5_142

><td class="source">        {<br></td></tr
><tr
id=sl_svn5_143

><td class="source">            Console.WriteLine(&quot;Usage: {0}.exe path_to_ios.wad [-FS] [-ES] [-NP] [-slot 70] [-v 65535]&quot;, Path.GetFileNameWithoutExtension(Application.ExecutablePath));<br></td></tr
><tr
id=sl_svn5_144

><td class="source">            Console.WriteLine(&quot;     -FS =&gt; Patch Fakesigning (optional)&quot;);<br></td></tr
><tr
id=sl_svn5_145

><td class="source">            Console.WriteLine(&quot;     -ES =&gt; Patch ES_Identify (optional)&quot;);<br></td></tr
><tr
id=sl_svn5_146

><td class="source">            Console.WriteLine(&quot;     -NP =&gt; Patch NAND Permissions (optional)&quot;);<br></td></tr
><tr
id=sl_svn5_147

><td class="source">            Console.WriteLine(&quot;     -slot 70 =&gt; Changes the slot the IOS installs to (optional)&quot;);<br></td></tr
><tr
id=sl_svn5_148

><td class="source">            Console.WriteLine(&quot;     -v 65535 =&gt; Changes the version of the IOS (optional)&quot;);<br></td></tr
><tr
id=sl_svn5_149

><td class="source">        }<br></td></tr
><tr
id=sl_svn5_150

><td class="source"><br></td></tr
><tr
id=sl_svn5_151

><td class="source">        private static void exit()<br></td></tr
><tr
id=sl_svn5_152

><td class="source">        {<br></td></tr
><tr
id=sl_svn5_153

><td class="source">            //Wait if debugging<br></td></tr
><tr
id=sl_svn5_154

><td class="source">#if Debug<br></td></tr
><tr
id=sl_svn5_155

><td class="source">            Console.ReadLine();<br></td></tr
><tr
id=sl_svn5_156

><td class="source">#endif<br></td></tr
><tr
id=sl_svn5_157

><td class="source"><br></td></tr
><tr
id=sl_svn5_158

><td class="source">            //Exit application<br></td></tr
><tr
id=sl_svn5_159

><td class="source">            Environment.Exit(0);<br></td></tr
><tr
id=sl_svn5_160

><td class="source">        }<br></td></tr
><tr
id=sl_svn5_161

><td class="source">    }<br></td></tr
><tr
id=sl_svn5_162

><td class="source">}<br></td></tr
></table></pre>
<pre><table width="100%"><tr class="cursor_stop cursor_hidden"><td></td></tr></table></pre>
</td>
</tr></table>

 
<script type="text/javascript">
 var lineNumUnderMouse = -1;
 
 function gutterOver(num) {
 gutterOut();
 var newTR = document.getElementById('gr_svn5_' + num);
 if (newTR) {
 newTR.className = 'undermouse';
 }
 lineNumUnderMouse = num;
 }
 function gutterOut() {
 if (lineNumUnderMouse != -1) {
 var oldTR = document.getElementById(
 'gr_svn5_' + lineNumUnderMouse);
 if (oldTR) {
 oldTR.className = '';
 }
 lineNumUnderMouse = -1;
 }
 }
 var numsGenState = {table_base_id: 'nums_table_'};
 var srcGenState = {table_base_id: 'src_table_'};
 var alignerRunning = false;
 var startOver = false;
 function setLineNumberHeights() {
 if (alignerRunning) {
 startOver = true;
 return;
 }
 numsGenState.chunk_id = 0;
 numsGenState.table = document.getElementById('nums_table_0');
 numsGenState.row_num = 0;
 if (!numsGenState.table) {
 return; // Silently exit if no file is present.
 }
 srcGenState.chunk_id = 0;
 srcGenState.table = document.getElementById('src_table_0');
 srcGenState.row_num = 0;
 alignerRunning = true;
 continueToSetLineNumberHeights();
 }
 function rowGenerator(genState) {
 if (genState.row_num < genState.table.rows.length) {
 var currentRow = genState.table.rows[genState.row_num];
 genState.row_num++;
 return currentRow;
 }
 var newTable = document.getElementById(
 genState.table_base_id + (genState.chunk_id + 1));
 if (newTable) {
 genState.chunk_id++;
 genState.row_num = 0;
 genState.table = newTable;
 return genState.table.rows[0];
 }
 return null;
 }
 var MAX_ROWS_PER_PASS = 1000;
 function continueToSetLineNumberHeights() {
 var rowsInThisPass = 0;
 var numRow = 1;
 var srcRow = 1;
 while (numRow && srcRow && rowsInThisPass < MAX_ROWS_PER_PASS) {
 numRow = rowGenerator(numsGenState);
 srcRow = rowGenerator(srcGenState);
 rowsInThisPass++;
 if (numRow && srcRow) {
 if (numRow.offsetHeight != srcRow.offsetHeight) {
 numRow.firstChild.style.height = srcRow.offsetHeight + 'px';
 }
 }
 }
 if (rowsInThisPass >= MAX_ROWS_PER_PASS) {
 setTimeout(continueToSetLineNumberHeights, 10);
 } else {
 alignerRunning = false;
 if (startOver) {
 startOver = false;
 setTimeout(setLineNumberHeights, 500);
 }
 }
 }
 function initLineNumberHeights() {
 // Do 2 complete passes, because there can be races
 // between this code and prettify.
 startOver = true;
 setTimeout(setLineNumberHeights, 250);
 window.onresize = setLineNumberHeights;
 }
 initLineNumberHeights();
</script>

 
 
 <div id="log">
 <div style="text-align:right">
 <a class="ifCollapse" href="#" onclick="_toggleMeta(this); return false">Show details</a>
 <a class="ifExpand" href="#" onclick="_toggleMeta(this); return false">Hide details</a>
 </div>
 <div class="ifExpand">
 
 
 <div class="pmeta_bubble_bg" style="border:1px solid white">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <div id="changelog">
 <p>Change log</p>
 <div>
 <a href="/p/libwiisharp/source/detail?spec=svn5&amp;r=5">r5</a>
 by Leathl
 on Jun 2, 2010
 &nbsp; <a href="/p/libwiisharp/source/diff?spec=svn5&r=5&amp;format=side&amp;path=/branches/patchIOS/patchIOS/Program.cs&amp;old_path=/branches/patchIOS/patchIOS/Program.cs&amp;old=">Diff</a>
 </div>
 <pre>Updated with sources for XFlak</pre>
 </div>
 
 
 
 
 
 
 <script type="text/javascript">
 var detail_url = '/p/libwiisharp/source/detail?r=5&spec=svn5';
 var publish_url = '/p/libwiisharp/source/detail?r=5&spec=svn5#publish';
 // describe the paths of this revision in javascript.
 var changed_paths = [];
 var changed_urls = [];
 
 changed_paths.push('/branches/NusFileGrabber');
 changed_urls.push('/p/libwiisharp/source/browse/branches/NusFileGrabber?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/NusFileGrabber/NusFileGrabber');
 changed_urls.push('/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/NusFileGrabber/NusFileGrabber.sln');
 changed_urls.push('/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber.sln?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/NusFileGrabber/NusFileGrabber.suo');
 changed_urls.push('/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber.suo?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/NusFileGrabber/NusFileGrabber/NusFileGrabber.csproj');
 changed_urls.push('/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber/NusFileGrabber.csproj?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/NusFileGrabber/NusFileGrabber/NusFileGrabber.csproj.user');
 changed_urls.push('/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber/NusFileGrabber.csproj.user?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/NusFileGrabber/NusFileGrabber/Program.cs');
 changed_urls.push('/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber/Program.cs?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/NusFileGrabber/NusFileGrabber/Properties');
 changed_urls.push('/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber/Properties?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/NusFileGrabber/NusFileGrabber/Properties/AssemblyInfo.cs');
 changed_urls.push('/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber/Properties/AssemblyInfo.cs?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/patchIOS');
 changed_urls.push('/p/libwiisharp/source/browse/branches/patchIOS?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/patchIOS/patchIOS');
 changed_urls.push('/p/libwiisharp/source/browse/branches/patchIOS/patchIOS?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/patchIOS/patchIOS.sln');
 changed_urls.push('/p/libwiisharp/source/browse/branches/patchIOS/patchIOS.sln?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/patchIOS/patchIOS.suo');
 changed_urls.push('/p/libwiisharp/source/browse/branches/patchIOS/patchIOS.suo?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/patchIOS/patchIOS/Program.cs');
 changed_urls.push('/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/Program.cs?r\x3d5\x26spec\x3dsvn5');
 
 var selected_path = '/branches/patchIOS/patchIOS/Program.cs';
 
 
 changed_paths.push('/branches/patchIOS/patchIOS/Properties');
 changed_urls.push('/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/Properties?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/patchIOS/patchIOS/Properties/AssemblyInfo.cs');
 changed_urls.push('/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/Properties/AssemblyInfo.cs?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/patchIOS/patchIOS/app.config');
 changed_urls.push('/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/app.config?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/patchIOS/patchIOS/patchIOS.csproj');
 changed_urls.push('/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/patchIOS.csproj?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/branches/patchIOS/patchIOS/patchIOS.csproj.user');
 changed_urls.push('/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/patchIOS.csproj.user?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Form1.Designer.cs');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Form1.Designer.cs?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Form1.cs');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Form1.cs?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Form1.resx');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Form1.resx?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Program.cs');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Program.cs?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Properties');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Properties?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Properties/AssemblyInfo.cs');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Properties/AssemblyInfo.cs?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Properties/Resources.Designer.cs');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Properties/Resources.Designer.cs?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Properties/Resources.resx');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Properties/Resources.resx?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Properties/Settings.Designer.cs');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Properties/Settings.Designer.cs?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Properties/Settings.settings');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Properties/Settings.settings?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/Tester.csproj');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/Tester.csproj?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Debug');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Debug?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Debug/Changelog_libWiiSharp.txt');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Changelog_libWiiSharp.txt?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Debug/License_libWiiSharp.txt');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/License_libWiiSharp.txt?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Debug/Readme_libWiiSharp.txt');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Readme_libWiiSharp.txt?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Debug/Tester.exe');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Tester.exe?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Debug/Tester.pdb');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Tester.pdb?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Debug/Tester.vshost.exe');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Tester.vshost.exe?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Debug/Tester.vshost.exe.manifest');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Tester.vshost.exe.manifest?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Debug/libWiiSharp.dll');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/libWiiSharp.dll?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Debug/libWiiSharp.pdb');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/libWiiSharp.pdb?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Release');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Release?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Release/Changelog_libWiiSharp.txt');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Changelog_libWiiSharp.txt?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Release/License_libWiiSharp.txt');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Release/License_libWiiSharp.txt?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Release/Readme_libWiiSharp.txt');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Readme_libWiiSharp.txt?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Release/Tester.exe');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Tester.exe?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Release/Tester.pdb');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Tester.pdb?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Release/Tester.vshost.exe');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Tester.vshost.exe?r\x3d5\x26spec\x3dsvn5');
 
 
 changed_paths.push('/trunk/Tester/bin/Release/Tester.vshost.exe.manifest');
 changed_urls.push('/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Tester.vshost.exe.manifest?r\x3d5\x26spec\x3dsvn5');
 
 
 function getCurrentPageIndex() {
 for (var i = 0; i < changed_paths.length; i++) {
 if (selected_path == changed_paths[i]) {
 return i;
 }
 }
 }
 function getNextPage() {
 var i = getCurrentPageIndex();
 if (i < changed_paths.length - 1) {
 return changed_urls[i + 1];
 }
 return null;
 }
 function getPreviousPage() {
 var i = getCurrentPageIndex();
 if (i > 0) {
 return changed_urls[i - 1];
 }
 return null;
 }
 function gotoNextPage() {
 var page = getNextPage();
 if (!page) {
 page = detail_url;
 }
 window.location = page;
 }
 function gotoPreviousPage() {
 var page = getPreviousPage();
 if (!page) {
 page = detail_url;
 }
 window.location = page;
 }
 function gotoDetailPage() {
 window.location = detail_url;
 }
 function gotoPublishPage() {
 window.location = publish_url;
 }
</script>

 
 <style type="text/css">
 #review_nav {
 border-top: 3px solid white;
 padding-top: 6px;
 margin-top: 1em;
 }
 #review_nav td {
 vertical-align: middle;
 }
 #review_nav select {
 margin: .5em 0;
 }
 </style>
 <div id="review_nav">
 <table><tr><td>Go to:&nbsp;</td><td>
 <select name="files_in_rev" onchange="window.location=this.value">
 
 <option value="/p/libwiisharp/source/browse/branches/NusFileGrabber?r=5&amp;spec=svn5"
 
 >/branches/NusFileGrabber</option>
 
 <option value="/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber?r=5&amp;spec=svn5"
 
 >...es/NusFileGrabber/NusFileGrabber</option>
 
 <option value="/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber.sln?r=5&amp;spec=svn5"
 
 >...usFileGrabber/NusFileGrabber.sln</option>
 
 <option value="/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber.suo?r=5&amp;spec=svn5"
 
 >...usFileGrabber/NusFileGrabber.suo</option>
 
 <option value="/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber/NusFileGrabber.csproj?r=5&amp;spec=svn5"
 
 >...ileGrabber/NusFileGrabber.csproj</option>
 
 <option value="/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber/NusFileGrabber.csproj.user?r=5&amp;spec=svn5"
 
 >...abber/NusFileGrabber.csproj.user</option>
 
 <option value="/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber/Program.cs?r=5&amp;spec=svn5"
 
 >...rabber/NusFileGrabber/Program.cs</option>
 
 <option value="/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber/Properties?r=5&amp;spec=svn5"
 
 >...rabber/NusFileGrabber/Properties</option>
 
 <option value="/p/libwiisharp/source/browse/branches/NusFileGrabber/NusFileGrabber/Properties/AssemblyInfo.cs?r=5&amp;spec=svn5"
 
 >...abber/Properties/AssemblyInfo.cs</option>
 
 <option value="/p/libwiisharp/source/browse/branches/patchIOS?r=5&amp;spec=svn5"
 
 >/branches/patchIOS</option>
 
 <option value="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS?r=5&amp;spec=svn5"
 
 >/branches/patchIOS/patchIOS</option>
 
 <option value="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS.sln?r=5&amp;spec=svn5"
 
 >/branches/patchIOS/patchIOS.sln</option>
 
 <option value="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS.suo?r=5&amp;spec=svn5"
 
 >/branches/patchIOS/patchIOS.suo</option>
 
 <option value="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/Program.cs?r=5&amp;spec=svn5"
 selected="selected"
 >...hes/patchIOS/patchIOS/Program.cs</option>
 
 <option value="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/Properties?r=5&amp;spec=svn5"
 
 >...hes/patchIOS/patchIOS/Properties</option>
 
 <option value="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/Properties/AssemblyInfo.cs?r=5&amp;spec=svn5"
 
 >...chIOS/Properties/AssemblyInfo.cs</option>
 
 <option value="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/app.config?r=5&amp;spec=svn5"
 
 >...hes/patchIOS/patchIOS/app.config</option>
 
 <option value="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/patchIOS.csproj?r=5&amp;spec=svn5"
 
 >...atchIOS/patchIOS/patchIOS.csproj</option>
 
 <option value="/p/libwiisharp/source/browse/branches/patchIOS/patchIOS/patchIOS.csproj.user?r=5&amp;spec=svn5"
 
 >...OS/patchIOS/patchIOS.csproj.user</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester?r=5&amp;spec=svn5"
 
 >/trunk/Tester</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Form1.Designer.cs?r=5&amp;spec=svn5"
 
 >/trunk/Tester/Form1.Designer.cs</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Form1.cs?r=5&amp;spec=svn5"
 
 >/trunk/Tester/Form1.cs</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Form1.resx?r=5&amp;spec=svn5"
 
 >/trunk/Tester/Form1.resx</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Program.cs?r=5&amp;spec=svn5"
 
 >/trunk/Tester/Program.cs</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Properties?r=5&amp;spec=svn5"
 
 >/trunk/Tester/Properties</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Properties/AssemblyInfo.cs?r=5&amp;spec=svn5"
 
 >...ester/Properties/AssemblyInfo.cs</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Properties/Resources.Designer.cs?r=5&amp;spec=svn5"
 
 >...Properties/Resources.Designer.cs</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Properties/Resources.resx?r=5&amp;spec=svn5"
 
 >...Tester/Properties/Resources.resx</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Properties/Settings.Designer.cs?r=5&amp;spec=svn5"
 
 >.../Properties/Settings.Designer.cs</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Properties/Settings.settings?r=5&amp;spec=svn5"
 
 >...ter/Properties/Settings.settings</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/Tester.csproj?r=5&amp;spec=svn5"
 
 >/trunk/Tester/Tester.csproj</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin?r=5&amp;spec=svn5"
 
 >/trunk/Tester/bin</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Debug?r=5&amp;spec=svn5"
 
 >/trunk/Tester/bin/Debug</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Changelog_libWiiSharp.txt?r=5&amp;spec=svn5"
 
 >.../Debug/Changelog_libWiiSharp.txt</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/License_libWiiSharp.txt?r=5&amp;spec=svn5"
 
 >...in/Debug/License_libWiiSharp.txt</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Readme_libWiiSharp.txt?r=5&amp;spec=svn5"
 
 >...bin/Debug/Readme_libWiiSharp.txt</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Tester.exe?r=5&amp;spec=svn5"
 
 >/trunk/Tester/bin/Debug/Tester.exe</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Tester.pdb?r=5&amp;spec=svn5"
 
 >/trunk/Tester/bin/Debug/Tester.pdb</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Tester.vshost.exe?r=5&amp;spec=svn5"
 
 >...ster/bin/Debug/Tester.vshost.exe</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/Tester.vshost.exe.manifest?r=5&amp;spec=svn5"
 
 >...Debug/Tester.vshost.exe.manifest</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/libWiiSharp.dll?r=5&amp;spec=svn5"
 
 >...Tester/bin/Debug/libWiiSharp.dll</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Debug/libWiiSharp.pdb?r=5&amp;spec=svn5"
 
 >...Tester/bin/Debug/libWiiSharp.pdb</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Release?r=5&amp;spec=svn5"
 
 >/trunk/Tester/bin/Release</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Changelog_libWiiSharp.txt?r=5&amp;spec=svn5"
 
 >...elease/Changelog_libWiiSharp.txt</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Release/License_libWiiSharp.txt?r=5&amp;spec=svn5"
 
 >.../Release/License_libWiiSharp.txt</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Readme_libWiiSharp.txt?r=5&amp;spec=svn5"
 
 >...n/Release/Readme_libWiiSharp.txt</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Tester.exe?r=5&amp;spec=svn5"
 
 >...nk/Tester/bin/Release/Tester.exe</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Tester.pdb?r=5&amp;spec=svn5"
 
 >...nk/Tester/bin/Release/Tester.pdb</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Tester.vshost.exe?r=5&amp;spec=svn5"
 
 >...er/bin/Release/Tester.vshost.exe</option>
 
 <option value="/p/libwiisharp/source/browse/trunk/Tester/bin/Release/Tester.vshost.exe.manifest?r=5&amp;spec=svn5"
 
 >...lease/Tester.vshost.exe.manifest</option>
 
 </select>
 </td></tr></table>
 
 
 



 
 </div>
 
 
 </div>
 <div class="round1"></div>
 <div class="round2"></div>
 <div class="round4"></div>
 </div>
 <div class="pmeta_bubble_bg" style="border:1px solid white">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <div id="older_bubble">
 <p>Older revisions</p>
 
 <a href="/p/libwiisharp/source/list?path=/branches/patchIOS/patchIOS/Program.cs&start=5">All revisions of this file</a>
 </div>
 </div>
 <div class="round1"></div>
 <div class="round2"></div>
 <div class="round4"></div>
 </div>
 
 <div class="pmeta_bubble_bg" style="border:1px solid white">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <div id="fileinfo_bubble">
 <p>File info</p>
 
 <div>Size: 6074 bytes,
 162 lines</div>
 
 <div><a href="//libwiisharp.googlecode.com/svn/branches/patchIOS/patchIOS/Program.cs">View raw file</a></div>
 </div>
 
 </div>
 <div class="round1"></div>
 <div class="round2"></div>
 <div class="round4"></div>
 </div>
 </div>
 </div>


</div>

</div>
</div>

<script src="http://www.gstatic.com/codesite/ph/10528504652088637030/js/prettify/prettify.js"></script>
<script type="text/javascript">prettyPrint();</script>


<script src="http://www.gstatic.com/codesite/ph/10528504652088637030/js/source_file_scripts.js"></script>

 <script type="text/javascript" src="https://kibbles.googlecode.com/files/kibbles-1.3.3.comp.js"></script>
 <script type="text/javascript">
 var lastStop = null;
 var initialized = false;
 
 function updateCursor(next, prev) {
 if (prev && prev.element) {
 prev.element.className = 'cursor_stop cursor_hidden';
 }
 if (next && next.element) {
 next.element.className = 'cursor_stop cursor';
 lastStop = next.index;
 }
 }
 
 function pubRevealed(data) {
 updateCursorForCell(data.cellId, 'cursor_stop cursor_hidden');
 if (initialized) {
 reloadCursors();
 }
 }
 
 function draftRevealed(data) {
 updateCursorForCell(data.cellId, 'cursor_stop cursor_hidden');
 if (initialized) {
 reloadCursors();
 }
 }
 
 function draftDestroyed(data) {
 updateCursorForCell(data.cellId, 'nocursor');
 if (initialized) {
 reloadCursors();
 }
 }
 function reloadCursors() {
 kibbles.skipper.reset();
 loadCursors();
 if (lastStop != null) {
 kibbles.skipper.setCurrentStop(lastStop);
 }
 }
 // possibly the simplest way to insert any newly added comments
 // is to update the class of the corresponding cursor row,
 // then refresh the entire list of rows.
 function updateCursorForCell(cellId, className) {
 var cell = document.getElementById(cellId);
 // we have to go two rows back to find the cursor location
 var row = getPreviousElement(cell.parentNode);
 row.className = className;
 }
 // returns the previous element, ignores text nodes.
 function getPreviousElement(e) {
 var element = e.previousSibling;
 if (element.nodeType == 3) {
 element = element.previousSibling;
 }
 if (element && element.tagName) {
 return element;
 }
 }
 function loadCursors() {
 // register our elements with skipper
 var elements = CR_getElements('*', 'cursor_stop');
 var len = elements.length;
 for (var i = 0; i < len; i++) {
 var element = elements[i]; 
 element.className = 'cursor_stop cursor_hidden';
 kibbles.skipper.append(element);
 }
 }
 function toggleComments() {
 CR_toggleCommentDisplay();
 reloadCursors();
 }
 function keysOnLoadHandler() {
 // setup skipper
 kibbles.skipper.addStopListener(
 kibbles.skipper.LISTENER_TYPE.PRE, updateCursor);
 // Set the 'offset' option to return the middle of the client area
 // an option can be a static value, or a callback
 kibbles.skipper.setOption('padding_top', 50);
 // Set the 'offset' option to return the middle of the client area
 // an option can be a static value, or a callback
 kibbles.skipper.setOption('padding_bottom', 100);
 // Register our keys
 kibbles.skipper.addFwdKey("n");
 kibbles.skipper.addRevKey("p");
 kibbles.keys.addKeyPressListener(
 'u', function() { window.location = detail_url; });
 kibbles.keys.addKeyPressListener(
 'r', function() { window.location = detail_url + '#publish'; });
 
 kibbles.keys.addKeyPressListener('j', gotoNextPage);
 kibbles.keys.addKeyPressListener('k', gotoPreviousPage);
 
 
 }
 </script>
<script src="http://www.gstatic.com/codesite/ph/10528504652088637030/js/code_review_scripts.js"></script>
<script type="text/javascript">
 function showPublishInstructions() {
 var element = document.getElementById('review_instr');
 if (element) {
 element.className = 'opened';
 }
 }
 var codereviews;
 function revsOnLoadHandler() {
 // register our source container with the commenting code
 var paths = {'svn5': '/branches/patchIOS/patchIOS/Program.cs'}
 codereviews = CR_controller.setup(
 {"profileUrl":["/u/wiibricker/"],"token":"241COU8sP-YgFxu0XczFkY8o6QM:1335282193383","assetHostPath":"http://www.gstatic.com/codesite/ph","domainName":null,"assetVersionPath":"http://www.gstatic.com/codesite/ph/10528504652088637030","projectHomeUrl":"/p/libwiisharp","relativeBaseUrl":"","projectName":"libwiisharp","loggedInUserEmail":"wiibricker@gmail.com"}, '', 'svn5', paths,
 CR_BrowseIntegrationFactory);
 
 codereviews.registerActivityListener(CR_ActivityType.REVEAL_DRAFT_PLATE, showPublishInstructions);
 
 codereviews.registerActivityListener(CR_ActivityType.REVEAL_PUB_PLATE, pubRevealed);
 codereviews.registerActivityListener(CR_ActivityType.REVEAL_DRAFT_PLATE, draftRevealed);
 codereviews.registerActivityListener(CR_ActivityType.DISCARD_DRAFT_COMMENT, draftDestroyed);
 
 
 
 
 
 
 
 var initialized = true;
 reloadCursors();
 }
 window.onload = function() {keysOnLoadHandler(); revsOnLoadHandler();};

</script>
<script type="text/javascript" src="http://www.gstatic.com/codesite/ph/10528504652088637030/js/dit_scripts.js"></script>

 
 
 
 <script type="text/javascript" src="http://www.gstatic.com/codesite/ph/10528504652088637030/js/ph_core.js"></script>
 
 
 
 
 <script type="text/javascript" src="/js/codesite_product_dictionary_ph.pack.04102009.js"></script>
</div> 
<div id="footer" dir="ltr">
 <div class="text">
 <a href="/projecthosting/terms.html">Terms</a> -
 <a href="http://www.google.com/privacy.html">Privacy</a> -
 <a href="/p/support/">Project Hosting Help</a>
 </div>
</div>
 <div class="hostedBy" style="margin-top: -20px;">
 <span style="vertical-align: top;">Powered by <a href="http://code.google.com/projecthosting/">Google Project Hosting</a></span>
 </div>
 
 


 
 </body>
</html>

